<template>
  <div class="dashboard-container">
    <ComTest :a.sync="num" />
  </div>
</template>

<script>
import { mapGetters } from 'vuex'
import { getProfile } from '@/api/user'
import ComTest from './comTest.vue'
export default {
  name: 'Dashboard',
  components: {
    ComTest
  },
  data() {
    return {
      num: 100
    }
  },
  computed: {
    ...mapGetters([
      'name'
    ])
  },
  methods: {
    async test() {
      await getProfile()
    }
  }

}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
</style>
